<?php

namespace App\Admin\Actions\Href;

use Encore\Admin\Actions\RowAction;

class MessageHrefAction extends RowAction
{
    public $name = '消息';

    public int $id = 0;

    public function __construct(int $id = 0)
    {
        parent::__construct();
        $this->id = $id;
    }

    public function href(): string
    {
        return '/admin/message?userId=' . $this->id;
    }
}
